﻿///***************************************************************
/// 시  스  템 : Updms.Com.Dac
/// 단위시스템 : COM
/// 계      층 : Data Access Layer
/// 프로그램명 : Com_Dac_UPDMS_COM_MENU_HOTLINK
/// 파  일  명 : Com_Dac_UPDMS_COM_MENU_HOTLINK.cs
/// 설      명 : 메뉴핫링크
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-08-06 송시명   최초 작성
///***************************************************************
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Com.Dac
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Supported)]
	[JustInTimeActivation(true)]
	public class Com_Dac_UPDMS_COM_MENU_HOTLINK : Base.AppFramework.DacBase
	{
		public Com_Dac_UPDMS_COM_MENU_HOTLINK()
		{
		}		

		#region NT [SelectBeforeProcess]
		/// <summary>
		/// 등록가능한 프로그램
		/// </summary>
		/// <param name="ls_user_id"></param>
		/// <param name="ls_access_level"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet SelectBeforeProcess(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_COM_MENU_HOTLINK_Select_Before";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_COM_MENU_HOTLINK", ds, paramArray, CommandType.StoredProcedure);
		}
		
		#endregion
		
		#region NT [SelectAfterProcess]
		/// <summary>
		/// 등록된 프로그램
		/// </summary>
		/// <param name="ls_user_id"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet SelectAfterProcess(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_COM_MENU_HOTLINK_Select_After";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_COM_MENU_HOTLINK", ds, paramArray, CommandType.StoredProcedure);
		}
		
		#endregion

		#region NT [GetHotLinkList]

		[AutoComplete]
		public DataSet GetHotLinkList(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_COM_MENU_HOTLINK_Get_HotLink_List";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();			

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_COM_MENU_HOTLINK", ds, paramArray, CommandType.StoredProcedure);
		}

		#endregion			


		#region RT [Insert]

		[AutoComplete]
		public int Insert(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_COM_MENU_HOTLINK_Insert_Xml";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();
			
			return _agent.ExecuteNonQuery(strSql, paramArray, CommandType.StoredProcedure);
		}

		#endregion
	}
}
